﻿namespace eg_007_枚举
{
    internal class Program
    {
        enum Animal : byte
        {
            Dog = 0,
            Cat = 1,
            Mouse = 2
        }
        static void Main(string[] args)
        {
            Animal animal = Animal.Cat;
            switch (animal)
            {
                case Animal.Dog:                            //如果为Dog，则输出“狗”
                    Console.WriteLine("狗");
                    break;
                case Animal.Cat:                            //如果为Cat，则输出“猫”
                    Console.WriteLine("猫");
                    break;
                case Animal.Mouse:                          //如果为Mouse，则输出“鼠”
                    Console.WriteLine("鼠");
                    break;
                default:
                    break;
            }
        }
    }
}